package com.ry.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class PageController {

    @RequestMapping("/")
    public String doIndex(){
        return "index2";
    }

    @RequestMapping("/ruoyi/{params}/{itemId}")
    public String doItem(@PathVariable String params, @PathVariable Long itemId, Model model){
        return "ruoyi/"+params;
    }

    @RequestMapping("/ruoyi/{params}")
    public String doPage(@PathVariable String params){
        return "ruoyi/"+params;
    }

    @RequestMapping("/{params}")
    public String doLogReg(@PathVariable String params){
        return params;
    }
}
